package com.jxbai.design.pattern.dcxy.singleton;

/**
 * @author jxbai
 * @date 2021/12/13
 */
public class SingletonPatternDemo {

    public static void main(String[] args) {
        System.out.println(LazySingleton.getInstance() == LazySingleton.getInstance());
        System.out.println(EargerSingleton.getInstance() == EargerSingleton.getInstance());
        System.out.println(DclSingleton.getInstance() == DclSingleton.getInstance());
    }
}
